#ifndef MYLIB_DRIVER_TIM_H
#define MYLIB_DRIVER_TIM_H

#include <mylib/mylib_config.h>
#include <stdint.h>

enum{
    TIM_1 = 0,
    TIM_2,
    TIM_3,
    TIM_4,
    TIM_5,
    TIM_6,
    TIM_7,
    TIM_8,
    TIM_9,
    TIM_10,
    TIM_11,
    TIM_12,
    TIM_13,
    TIM_14
};

void tim_start(uint32_t tim);
void tim_stop(uint32_t tim);
void tim_set_period(uint32_t tim, uint32_t period);
void tim_set_prescaler(uint32_t tim, uint32_t prescaler);



#endif   // !MYLIB_DRIVER_TIM_H
